{extend name="layout"}
{block name="title"}编辑减员{/block}
{block name="body"}
<div class="content">
    <form class="mainForm" data-auto="false"  data-callback="submitCallback" autocomplete="off">
        <div class="error-info">

            <p> <span class="iconfont icon-gantanhao-quan"></span> {$downsizing.feedback|default=""}</p>
        </div>
        <div class="item-box">
            <div class="item-title">
                员工信息
            </div>
            <div class="item-form">
                <div class="item-row">
                    <span class="label-required-prev">员工姓名：</span>
                    <div>
                        <input type="text" required placeholder="请输入姓名" autocomplete="off" value="{$increase.name|default=''}" disabled>
                    </div>
                </div>
                <div class="item-row">
                    <span>身份证号：</span>
                    <div>
                        <input type="text"  required placeholder="请输入身份证号" autocomplete="off" value="{$increase.id_number|default=''}" disabled>
                    </div>
                </div>
                <div class="item-row">
                    <span>电话号码：</span>
                    <div>
                        <input type="number"  required placeholder="请输入电话号码" autocomplete="off"   value="{$increase.mobile|default=''}" disabled>
                    </div>
                </div>


            </div>
        </div>
        <div class="item-box insurance_type">
            <div class="item-title">
                保险信息
            </div>
            <div class="item-form insurance-box" >
                <div class="item-row">
                    <span class="label-required-prev">保险类型：</span>
                    <div>
                        <input type="text"  disabled autocomplete="off"
                               value="{$insurances[$downsizing.insurance]}">
                    </div>
                </div>

            <div class="item-row">
                <span class="label-required-prev">截止日期：</span>
                <div>
                    <input  data-date-input=""  autocomplete="off" name="end_date" placeholder="请选择"  value="{$downsizing.end_date|default=''}" required>
                </div>
            </div>
            <div class="item-row">
                <span class="label-required-prev">所属账期：</span>
                <div>

                    <input  data-date-input="month" readonly  name="account_period" value="{$downsizing.account_period ? $downsizing.account_period|default='' : $nextmonth}" required>
                </div>
            </div>
           

        </div>
        </div>



        <div class="button-box">
            <input type='hidden' value='{$downsizing.id}' name='id'>
            <a class="add-updata" onclick="$('form').submit()">提交审核</a>

        </div>
</form>

</div>


{/block}
{block name="script"}
<!--<script>-->
<!--	$(function (){-->
<!--		var docmHeight= document.documentElement.clientHeight ||document.body.clientHeight,-->
<!--			showHeight= document.documentElement.clientHeight ||document.body.clientHeight-->
<!--		// var Height = $('body').height();-->
<!--		// console.log(docmHeight -80,showHeight)-->
<!--		// 回到顶部-->
<!--		$(window).resize(function () {-->
<!--			// 回到顶部-->
<!--			showHeight= document.documentElement.clientHeight ||document.body.clientHeight-->
<!--			// console.log(showHeight)-->
<!--			if((docmHeight - 100)> showHeight){-->
<!--				//隐藏-->
<!--				$(".button-box").hide()-->
<!--			}else{-->
<!--				//显示-->
<!--				$(".button-box").show()-->
<!--			}-->
<!--		});-->
<!--	})-->
<!--</script>-->
<script>
	$(function () {

		$("[name='end_date']").change(function(){
			// $("[name^='insurance_end_date']").val($(this).val())

			var  val=$(this).val();
			$("[name^='insurance_end_date']").each(function(){
				var dataType=$(this).attr("data-type");
				$(this).val(val)

			})
			form.render();
		})

	})
</script>
<script>








</script>

{/block}
{block name="style"}
<style>
    .layui-table tbody tr:hover{
        background-color: #fff;
    }
</style>
{/block}


